package com.zlm.mapper;

import com.zlm.entity.Role;
import com.zlm.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.*;

/**
 * 查询数据库的dao类
 */

@Mapper
public interface UserMapper {

    List<Role> getRolesByUid(@Param("uid") Integer uid);

    User loadUserByUsername(@Param("username") String username);

    Integer updatePassword(@Param("username") String username, @Param("password") String password);
}
